#ifndef	_DEMO_IPUT_HELPER_H_
#define	_DEMO_IPUT_HELPER_H_

extern DEMOGameState_Context			*g_GameState;

namespace DEMOInputHelper
{
	extern bool bCareMouseEvent;

	/**
		Check is the event valid
	*/
	bool IsEventValid(hgeInputEvent theEvent);

	/**
		Convert event type to char*.
		Reference	hge.h

		#define INPUT_KEYDOWN		1
		#define INPUT_KEYUP			2
		#define INPUT_MBUTTONDOWN	3
		#define INPUT_MBUTTONUP		4
		#define INPUT_MOUSEMOVE		5
		#define INPUT_MOUSEWHEEL	6
	*/
	char* GetEventTypeToStr(hgeInputEvent theEvent);

	/**
		Helper set delegate in DEMOInputMng,point to DEMOGameState_Base.OnInput()
	*/
	bool ProcessInput_Helper(hgeInputEvent theEvent);
}

#endif	//_DEMO_IPUT_HELPER_H_